package main

import (
	"fmt"
	"reflect"
)

type User struct {
	id   int
	name string
	age  int
}

func (this *User) Call() {
	fmt.Println("user is called ...")
	fmt.Println(this)
}

func DoFiledAndMethood(input interface{}) {
	// 获取input的type
	inputType := reflect.TypeOf(input)
	fmt.Println("input type is ", inputType.Name())
	// 获取input的value
	inputValue := reflect.ValueOf(input)
	fmt.Println("input type is ", inputValue)
}

func main() {

}
